package test;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2023-01-27
 * Time:21:05
 */
@Controller
public class Demo1 {
    @Bean(name = "userDemo")
    public User user(){
        User user=new User();
        user.setName("a");
        user.setAge(1);
        user.setId(1);
        return user;
    }
}
